package com.waitingresult.reflection;

/**
 * All right reserved,Designed By WangShuai
 * <p>
 *
 * @author : WangShuai
 * @version : V1.0
 * @ClassName : Cat
 * @Description :
 * @date : 2021/9/30 13:50
 */
public class Cat {
    private int age  = 1;
    private String name = "招财猫";

    public void hi() {
        System.err.println(name + "   挥挥手~       "+age +"岁了");
    }
    public Cat() {
    }

    public Cat(int age, String name) {
        this.age = age;
        this.name = name;
    }

    private Cat(int age) {
        this.age = age;
    }

     Cat(String name) {
        this.name = name;
    }
}
